<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<script>
		 $(document).ready(function() {
		 	$( "button" ).button();
			$( "#laneTabs" ).tabs();
		 });
</script>
<div title="查看监测车道详细信息" id="monitoringLaneSelectDialog" class="lanedialogtitle">
	<div class="searchbox">
		<form id="frmmonitoringLane" onSubmit="return false">
			<input type="hidden" name="id" value="<c:out value='${monitoringLane.id }'/>">
			<table id="monitoringLaneTable" cellspacing="0" cellpadding="0">
				<tr>
   					<td align="right" style="width:114px;">车道号(&lt;=3位)：</td>
   					<td><div class="rvimsbiglabel"><c:out value="${monitoringLane.lanenum}"/></div></td>
   					<td align="right" style="width:156px;">是否可通行：</td>
   					<td><div class="rvimsbiglabel"><c:out value="${monitoringLane.canvia==1? '是' : '否'}"/></div></td>				
  				</tr>
           	</table>		
          	<%@ include file="../certification/certificationCommonView.jsp"%>
  		</form>
  	</div>
  	<div id="laneTabs">
			<ul>
				<li><a href="#listLaneConfigBox">车道配置信息</a></li>
				<li><a href="#listVehicleTravelStrategyBox">车辆行驶策略信息</a></li>
			</ul>
			<div id="listLaneConfigBox">
				<table id="monitoringLaneConfigList" style="min-width:800px;"cellspacing="0" cellpadding="0">
					<thead>
						<tr>
							<td>名称</td>
							<td>是否可通行</td>
							<td>最高行驶速度</td>
							<td>最低行驶速度</td>
							<td>超速起拍值</td>
							<td>低速起拍值</td>
							<td>机动车分组</td>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${listLaneConfig}" var="laneConfig">
							<tr id="objId_${laneConfig.id}" onclick="clickSelect(this)">
								<td><c:out value="${laneConfig.configname}"></c:out></td>
								<td><c:out value="${laneConfig.canvia==1? '是' : '否'}"></c:out></td>
								<td><c:out value="${laneConfig.upperviaspeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.lowerviaspeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.uppercapturespeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.lowercapturespeedlimit}"></c:out></td>
								<td><c:out value="${laneConfig.vehiclegroupname}"></c:out></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
			<div id="listVehicleTravelStrategyBox">
				<table id="monitoringVehicleTravelStrategyList" style="min-width:400px;" cellspacing="0" cellpadding="0">
					<thead>
						<tr>
							<td>名称</td>
							<td>信号灯状态</td>
							<td>行驶方向</td>
							<td>是否可继续通行</td>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${listVehicleTravelStrategy}" var="vehicleTravelStrategy">
							<tr id="objId_${vehicleTravelStrategy.id}" onclick="clickSelect(this)">
								<td><c:out value="${vehicleTravelStrategy.name}"></c:out></td>
								<td><c:out value="${vehicleTravelStrategy.signalstate}"></c:out></td>
								<td><c:out value="${vehicleTravelStrategy.direction}"></c:out></td>
								<td><c:out value="${vehicleTravelStrategy.canmove==1? '是' : '否'}"></c:out></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
	</div>
</div>
<script>
	$("#certificatecode").html("<div class='rvimsbiglabel'><c:out value='${certification.certificatecode}'></c:out></div>");
	setTableCSS("monitoringLaneConfigList");
	setTableCSS("monitoringVehicleTravelStrategyList");
</script>			